package photo3;

public class Dog2 extends Animal2 {


    public Dog2(String name, int age) {
        super(name, age);
    }
    public void bark(){

        System.out.println(this.name+"正在汪汪叫");
    }
}
